#include <iostream>
#include "../head/TreeNode.h"

using namespace std;

// 104: Maximum Depth of Binary Tree
class Solution {
public:
    int maxDepth(TreeNode* root) {
       if(root == NULL) return 0;
	   return 1 + max(maxDepth(root->left), maxDepth(root->right));	 
    }
};
